
namespace IMClient.Model.Message
{
    public class InitialGroupNotification : SystemMessage
    {
        public string GroupId { get; set; } = null!;

        public string GroupName { get; set; } = null!;

        public string GroupAvatar { get; set; } = null!;

        public string Creator { get; set; } = null!;

        public override string SystemType => "InitialGroupNotification";

        public override string ToJson()
        {
            var messageData = new
            {
                MessageId,
                SenderId,
                SenderName,
                SenderAvatar,
                ReceiverId,
                Content,
                MessageType,
                SystemType,
                Timestamp,
                IsRead,
                GroupId,
                GroupName,
                GroupAvatar,
                Creator
            };
            return System.Text.Json.JsonSerializer.Serialize(messageData);
        }
    }
}
